import com.ljwm.bootbase.ext.GeneratorConfig;
import com.ljwm.bootbase.ext.MyGenerator;
import com.ljwm.bootbase.kit.PathKit;

/**
 * BootBaseDemo Created by yunqisong on 2018-05-22.
 * FOR:
 */
public class Gennerator {

    public static void main(String[] args) {
        MyGenerator.build(
            GeneratorConfig
                .builder()
                .url("jdbc:mysql://127.0.0.1:3306/test1?characterEncoding=UTF-8&autoReconnect=true")
                .username("root")
                .password("123456")
                .basePackage("com.ljwm")
                .path(PathKit.getProjectPath() + "/server/")
                .authorName("Y_QS")
                .created(true)
                .prefix("t_")
                .tables(new String[]{"t_user"})
                .build()
        );
    }
}
